
	<link th:href="@{/css/style.min862f.css}" href="css/style.min862f.css"
	rel="stylesheet"></link>
				<div class="logo"><img src="images/logo.png" width="" height="120" /></div>
				
				<div class="topmenu">
				<div class="login"  style="display:none">
					<a href="register.htm" >注册</a>|
					<a href="javascript:"  onclick="login()">登录</a>
				</div>
				<div class="loginout" style="display:none">
					<span>欢迎您！<e></e></span>
					<a href="logout.do" >退出</a>|
					<!--后台管理  -->
					<!-- <a href="/index" >后台管理</a>| -->
				</div>
				
				<a href="javascript:void(0)" onclick="SetHome(this,window.location)">设为首页</a>|
				<a href="javascript:void(0)" onclick="shoucang(document.title,window.location)">加入收藏</a>|
				<a href="contact.htm">联系我们</a>
				</div>
				<div class="phone"><img src="images/phone.jpg" width="278" height="39" /></div>
				
				<div class="menu" ng-controller="indexContr">
					<ul>
						<li class="dq">
							<a href="home.htm">首 页</a>
						</li>

						<li class="dq">
							<a href="about.htm">走进企业</a>
							<div class="submenu">
								<div class="submenubg">

									<a href="synopsis.htm"> 公司简介</a>

									<!-- <a href="idea.htm"> 公司理念</a>
 -->
									<a href="culture.htm"> 公司文化</a>

									<a href="aptitude.htm"> 公司资质</a>

								</div>
							</div>
						</li>
						<li class="dq">
							<a href="procedure.htm">客户服务</a>
							<div class="submenu">
								<div class="submenubg">

									<a href="procedure.htm"> 服务流程</a>

									<a href="report.htm"> 报告查询</a>

									<a href="data.htm">公告</a>
									<a href="download.htm">资料下载</a>

								</div>
							</div>
						</li>
						<li class="dq">
							<a href="mainBusiness.htm">主营业务</a>
							<div class="submenu">
								<div class="submenubg">

									<a href="mainBusiness.htm"> 检测服务</a>

									<a href="auth.htm"> 产品认证</a>

									<a href="train.htm"> 培训项目</a>

								</div>
							</div>
						</li>
						<li class="dq">
							<a href="newlist.htm" >新闻资讯</a>
						</li>
						<li class="dq">
							<a href="injour.htm">加入我们</a>
						</li>
						<li class="dq">
							<a href="contact.htm">联系我们</a>
						</li>

					</ul>
				</div>

<script type="text/javascript">
			// 设置为主页 
			function SetHome(obj, vrl) {
				try {
					obj.style.behavior = 'url(#default#homepage)';
					obj.setHomePage(vrl);
				} catch(e) {
					if(window.netscape) {
						try {
							netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
						} catch(e) {
							alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入'about:config'并回车\n然后将 [signed.applets.codebase_principal_support]的值设置为'true',双击即可。");
						}
						var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
						prefs.setCharPref('browser.startup.homepage', vrl);
					} else {
						alert("您的浏览器不支持，请按照下面步骤操作：1.打开浏览器设置。2.点击设置网页。3.输入：" + vrl + "点击确定。");
					}
				}
			}
			// 加入收藏 兼容360和IE6 
			function shoucang(sTitle, sURL) {
				try {
					window.external.addFavorite(sURL, sTitle);
				} catch(e) {
					try {
						window.sidebar.addPanel(sTitle, sURL, "");
					} catch(e) {
						alert("加入收藏失败，请使用Ctrl+D进行添加");
					}
				}
			}
			var loginhtml = '<form action="javascript:show();" method="post" class="login-form"><div  style=" padding:10px;"><div class="form-group">'+
            '<label>用户名</label>'+
            '<input type="text" name="userId" id="userId" class="form-control" placeholder="用户名" />'+
            '</div>'+
            '<div class="form-group">'+
            '<label>密码</label>'+
            '<input type="password" name="passWord" id="passWord" class="form-control" placeholder="密码" />'+
            '</div>'+
            '<div>'+
            '<button class=" btn btn-primary" data-ajax="post" type="submit" data-callback="success">登录</button>'+
            '</button>'+
            
            '</div></div></form>';
            
			function login(){
				layer.open({
					  title: '登  录',
					  type: 1,
					  skin: 'layui-layer-rim', //加上边框
					  area: ['500px', '300px'], //宽高
					  content: loginhtml,
					});
			}
			var fromurl = "";
		    function show() {
		        var userId = $("#userId").val();
		        var passWord = $("#passWord").val();
		        if ($.trim(userId) == "") {
		        	layer.msg('用户名不能为空！');
		            return;
		        }
		        if ($.trim(passWord) == "") {
		        	layer.msg('密码不能为空'); 
		            return;
		        }
		        $.ajax({
		            type : 'post',
		            url : 'loginCheck.do',
		            data : {
		                "userId" : userId,
		                "passWord" : passWord
		            },
		            success : function(data) {
		                if (data.status == 10001) {
		                    if (fromurl == "")
		                    	location.reload();
		                    else
		                        self.location = fromurl;
		                } else {
		                	layer.msg('用户名或密码错误'); 
		                }
		            }
		        });
		    }
		    
		    $(document).ready(function() {
		    	$.ajax({
		            type : 'post',
		            url : 'isLogin.do',
		            success : function(data) {
		                if (data.status == 10001) {
		                   $(".loginout e").html(data.data.userName);
		                   if(data.data.isAdmin == 1){
		                	   $(".loginout").append('<a href="login.do"  >管理员后台</a>');
		                   }
		                   $(".loginout").css("display","inline-block");
		                   $(".login").css("display","none");
		                } else {
	                		$(".login").css("display","inline-block");
	                   		$(".loginout").css("display","none");
		                }
		            }
		        });
		    });
		</script>